package com.zznode.redsun.commons.sercurity.service;

import org.springframework.transaction.annotation.Transactional;

import com.zznode.redsun.commons.sercurity.model.Account;
import com.zznode.redsun.commons.sercurity.model.Role;

public interface SecurityService {

	@Transactional
	void saveRole(Role role);

	@Transactional
	void addPermission(Long roleId, String... permissionIds);

	@Transactional
	void removePermission(Long roleId, String... permissionIds);

	@Transactional
	void saveAccount(Account account);

	@Transactional
	void addRoles(Long accountId, String... roleIds);

	@Transactional
	void removeRoles(Long accountId, String... roleIds);
}
